package com.charactereducation.api.service.user;

import com.charactereducation.module.vo.Activity;
import com.charactereducation.module.vo.User;
import com.charactereducation.tools.myRunTime.MyRunTimeExcption;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * Created by Baggio on 2018-6-25.
 */
@FeignClient(name = "service-userCenter")
public interface UserServiceClient {

    @PostMapping(value = "/user/login")
    User login(@RequestParam("phone") String phone,@RequestParam("passWord") String passWord) throws MyRunTimeExcption;

    @PostMapping(value = "/user/modify")
    void addUser(@RequestBody User user) throws MyRunTimeExcption;
}
